/* PDF Viewer styles */
.react-pdf__Document {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.react-pdf__Page {
  margin-bottom: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.react-pdf__Page__canvas {
  max-width: 100%;
  height: auto !important;
}

.react-pdf__Page__textContent {
  max-width: 100%;
  height: auto !important;
}

/* Animation for loading spinner */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Modal positioning */
.leafygreen-ui-nlp0f4 {
  max-width: 90vw !important;
}

/* Ensure PDF annotation layer doesn't overflow */
.react-pdf__Page__annotations.annotationLayer {
  max-width: 100%;
  overflow: hidden;
}

/* Ensure high z-index for modals */
[data-leafygreen-ui="modal-container"] {
  z-index: 10000;
}